Airwallex\Controllers\OrderController D

Total Complexity 133
Dependencies 9
Dependents 4
Total lines 701
Lines of code 432
Logical lines of code 264
Comment lines 162
Methods 21
Properties 0

Methods 21

Method Rating Maintainability Complexity Lines of code
getAvailableShippingOptions()
B
35 22 83
getDisplayItems()
B
37 15 72
normalizeState()
A
49 17 28
addToCart()
A
50 9 26
getNormalizedStateFromExpressCheckoutStates()
A
56 9 17
calculateShipping()
A
45 7 41
validateState()
A
53 8 22
calculateCartForProduct()
S
52 7 22
getNormalizedState()
S
55 7 19
getShippingOptions()
S
59 7 13
createOrderFromCart()
S
57 4 15
getEstimatedCartDetail()
S
64 4 8
updateShippingMethod()
S
59 3 13
getNormalizedPostcode()
S
65 3 9
updateWCShippingMethod()
S
65 3 9
getCartDetails()
S
62 2 11
isNormalizedState()
S
74 2 4
sanitizeString()
S
79 1 3
getCartBasics()
S
69 1 7
getFormattedShippingLabel()
S
74 1 4
getStoreCurrency()
S
71 1 6